/*
   Addressing Widget Styling
   Mojo Application Framework
   Copyright (c) 2007-2009, Palm Inc.
   All rights reserved.

*/

.addressing-widget {
  width: auto;
  margin: 0;
  padding: 0;
  background: url(../images/bottom-border-image.png) bottom repeat-x;  /* inv */
  clear: both;
}

.addressing-widget-edit-container {
  padding: 12px 8px 0px 8px;
  border-width: 20px 1px 5px 1px;
  -webkit-border-image: url(../images/text-entry-background.png) 20 1 5 1 repeat repeat; /* preload image */
  -webkit-border-image: url(../images/text-entry-background2.png) 20 1 5 1 repeat repeat;
  -webkit-box-sizing: border-box;
}

.addressing-widget-edit-container.focused {
  -webkit-border-image: url(../images/text-entry-background.png) 20 1 5 1 repeat repeat;
}

.addressing-widget-edit-container .recipient-area {
  padding-right: 4px; /* keep content buffered from right side of widget */
}

.addressing-widget .reverse-lookup {
  height:32px;
  width:32px;
  display:inline-block;
  vertical-align:middle;
  margin-top:-2px;
}

.addressing-widget-edit-wrapper {
  min-height: 43px;
  margin: -20px -1px -2px -1px;
}

.add-contact,
.add-contact-open {
  float: right;
  margin-top: -3px;
  margin-bottom: 3px;
  margin-left: -4px;
  margin-right: -4px; /* keep content buffered from right side of widget */
  width: 38px;
  height: 40px;
  border-width: 0px 18px;
  -webkit-border-image: url(../images/address-book.png) 0 18 80 18 repeat repeat;
  -webkit-box-sizing: border-box;
}
.add-contact.selected,
.add-contact-open.selected {
  -webkit-border-image: url(../images/address-book.png) 40 18 40 18 repeat repeat;
}
.add-contact-open,
.focused .add-contact {
  -webkit-border-image: url(../images/address-book.png) 80 18 0 18 repeat repeat;
}

.addressing-widget .icon.selectable {
  float: right;
  margin-top: -8px;
  margin-bottom: 8px;
  margin-left: -20px;
  margin-right: -8px;
  width: 42px;
  height: 42px;
  background: url(../images/commit.png) center center no-repeat;
}

.addressing-widget-edit-container .recipient-area .icon.selectable {
  margin-right: -2px; /* keep content buffered from right side of widget */
  margin-top: 2px;
  margin-bottom: 8px;
  margin-left: -30px;
  height: 32px;
  width: 52px;
}

.addressing-widget-fade-top {
	position: absolute;
	top: 0px;
	left: 0px;
	right: 0px;
	height: 28px;
	z-index: 19001;
  background: url(../images/addressing-widget-fade-top.png) bottom left repeat-x;
}

.addressing-widget-fade-bottom {
	position: absolute;
	bottom: 0px;
	left: 0px;
	right: 0px;
	height: 28px;
	z-index: 19001;
  background: url(../images/addressing-widget-fade-bottom.png) bottom left repeat-x;
}

.addressing-widget-results-container {
  position: absolute;
  margin: -1px 0 0 0;
  padding: 0;
  overflow: hidden;
  z-index: 12000;
  border-width: 0 0 8px 0;
  background: none;
  -webkit-border-image: url(../images/addressing-backdrop.png) 0 0 8 0 stretch stretch;
  width: 100%;
}

.addressing-widget-results-container-scroll {
  position: relative;
  font-size: 18px;
  font-weight: normal;
  padding: 0;
  overflow: hidden;
 	background: none;
  width: 100%;
}

.addressing-widget .palm-divider.labeled {
  min-width: 320px;
}

.addressing-widget-results-container .contact-header {
  margin-top: -5px;
  margin-bottom: -5px;
}

.addressing-widget-results-container .contact-point .title {
  padding-top: 6px;
  padding-bottom: 6px;
}

.addressing-widget-results-container .contact-point .label {
  margin-top: 5px !important;
}

.palm-row.selectable {
  border-width: 24px 20px;
  background: none;
  -webkit-border-image: url(../images/palm-row-selectable.png) 24 20 24 20 repeat repeat;
}
.palm-row.selectable > .palm-row-wrapper {
  margin: -24px -20px;
}
.palm-row.selectable .title {
  font-weight: bold;
}
.palm-row.selectable.selected {
  -webkit-border-image: url(../images/selection-gradient-default.png) 24 20 24 20 repeat repeat;
}

.label-container {
  min-width: 42px;
  height: 40px;
  margin: -3px 3px -3px 0;
  line-height: 37px;
  float: left;
  border-width: 0 16px;
  -webkit-border-image: none;
  -webkit-box-sizing: border-box;
}

.label-container.label-button {
  border-width: 0 16px;
  -webkit-border-image: url(../images/recipient-atom.png) 0 16 80 16 repeat repeat;
  -webkit-box-sizing: border-box;
}
.focused .label-container.label-button {
  -webkit-border-image: url(../images/recipient-atom.png) 80 16 0 16 repeat repeat;
}
.label-container.label-button.selected {
  -webkit-border-image: url(../images/recipient-atom.png) 40 16 40 16 repeat repeat;
}
.label-container.label-button.selected .label {
  color: #FFF;
}

.label-container .label {
  color: #77b8f0;
  overflow: visible;
  -webkit-user-select: none;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: normal;
  padding: 0px 0px 0px 12px;
}
.label-container.label-button .label {
  margin: 2px -3px 0 -16px;
}

.addressing-widget .hint-text {
  margin-top: 4px;
}

.recipient-atom {
  height: 40px;
  max-width: 250px;
  border-width: 0 16px;
  -webkit-border-image: url(../images/recipient-atom.png) 80 16 0 16 repeat repeat;
  -webkit-box-sizing: border-box;
  margin: -3px -2px 6px 0px;
  display: inline-block;
}
.recipient-atom.selected {
  -webkit-border-image: url(../images/recipient-atom.png) 40 16 40 16 repeat repeat;
}

.recipient-atom-wrapper {
  min-width: 16px;
  margin: 0 -16px;
  padding: 6px 8px 0px 8px;
}

.recipient {
  max-width: 248px;
  display: inline-block;
  margin: -3px 0 12px 2px;
  padding: 0px 1px 0px 14px;
  color: #000;
  font-weight: normal;
}
.recipient:first-child {
  max-width: 220px;
}
.recipient:only-child {
  max-width: 190px;
}

.addressing-widget .gal-lookup .palm-row {
  min-width: 320px; /* inv */
}

.addressing-widget .palm-row .title .icon {
  margin: 0px 4px 0px 0px;
  width: 32px;
  height: 32px;
}

.addressing-widget .palm-account-icon.icon {
	width: 32px;
	height: 32px;
	margin: 0px 4px 0px 16px;
}

.addressing-widget .icon.gmail {                                 
  background: url(../images/accounts/googletalk-32x32.png) center left no-repeat;
}

.addressing-widget .icon.aol {               
  background: url(../images/accounts/aim-32x32.png) center left no-repeat;
}

.addressing-widget .icon.msn {                    
  background: url(../images/accounts/messenger-32x32.png) center left no-repeat;
}

.addressing-widget .icon.yahoo {                            
  background: url(../images/accounts/yahoo-32x32.png) center left no-repeat;
}
             
.addressing-widget input {
  border: none;
  padding: 0;
  outline: none;
  background: transparent;
}

.addressing-widget .no-search-results-text {
  width: 100%;
  text-align: center;
  text-transform: uppercase;
  color: #a7a9ac;
  margin: 20px 0px;
  font-size: 16px;
}
