/**
 * Overrides & Compatibility - MeqiasY Height Comparison App
 * Ensures new components work with existing styles
 */

/* ============================================
   RTL COMPATIBILITY
   ============================================ */

[dir="rtl"] {
  /* Ensure proper text alignment */
  .text-center {
    text-align: center;
  }

  /* Fix flex direction for RTL */
  .d-flex.flex-row {
    flex-direction: row;
  }

  /* Fix margin/padding for RTL */
  .mx-2 {
    margin-left: var(--spacing-2);
    margin-right: var(--spacing-2);
  }
}

/* ============================================
    SIDEBAR OVERRIDES
    ============================================ */

.sidebar {
  background-color: transparent !important;
  padding: 0 !important;
  width: auto !important;
  z-index: 1000 !important;
}

/* ============================================
   VIEW PANEL OVERRIDES
   ============================================ */

.view {
  background-color: var(--color-surface-alt) !important;
  width: 100% !important;
  height: auto !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  min-height: 0;
  }

.view-panel {
  background-color: var(--color-surface) !important;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  max-height: 100%;
  overflow: hidden;
}

/* Fix comparing group positioning */
.view-comparing_group {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
  transition: width 1s;
}

/* ============================================
   GRID LINES OVERRIDES
   ============================================ */

.lines-group {
  display: flex;
  flex-direction: column-reverse;
  position: relative;
}

.line-view {
  border-bottom: 1px solid var(--grid-line-minor-color);
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: var(--grid-label-font-size);
  line-height: 1;
  transition: all 1s;
  position: relative;
}

.line-view span {
  display: block;
  color: var(--color-text-primary);
  padding: 0 var(--spacing-3);
  position: relative;
  background-color: var(--color-surface);
  z-index: 10;
}

/* Ensure grid starts from 0cm */
.linesShowDiv {
  height: var(--lineHeight) !important;
  display: flex;
  align-items: flex-end;
}

/* Fix ground line positioning - align with 0cm within grid container */
.view-ground_line {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  border: none !important;
  border-top: 3px solid #E53E3E !important;
  width: 100% !important;
  height: 0 !important;
  z-index: 200 !important;
  margin: 0 !important;
  padding: 0 !important;
}



/* ============================================
   PERSON MARKER OVERRIDES
   ============================================ */

.comparing_people {
  transition: all 0.5s;
  position: relative;
  z-index: 100;
}

.people-box {
  position: absolute;
  bottom: 0 !important;  /* CRITICAL: Force to bottom */
  left: 50%;
  transform: translateX(-50%);
}


.view-comparing_people {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex;
  align-items: flex-end !important;  /* CRITICAL */
  justify-content: center;
  pointer-events: none;
}


.view-animation_wrap {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex;
  align-items: flex-end !important; 
  justify-content: center;
  padding: 0;
  pointer-events: all;
  top: 0 !important;
}

/* Person Marker */
.person-marker {
  position: relative !important;
  bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;  
  align-items: center !important;
  margin: 0 10px !important;
}

/* CRITICAL: Remove any spacing from SVG/IMG */
.person-marker svg,
.person-marker img {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: bottom !important;  /* CRITICAL - removes inline gap */
  line-height: 0 !important;
}

/* CRITICAL: Ensure wrapper doesn't add spacing */
.person-marker > div {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* ============================================
   TAG/LABEL OVERRIDES
   ============================================ */

.tag {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  top: -60px !important;  /* Changed from -50px to -60px */
  height: 60px !important;  /* Changed from 50px to 60px */
  text-align: center;
  color: var(--color-text-primary);
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: 80px;  /* Add minimum width */
  max-width: var(--marker-label-max-width);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: visible !important;  /* Changed from hidden to visible */
  box-sizing: border-box;
  z-index: 1000;
}

.tag_inner {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-md);
  padding: var(--spacing-2) var(--spacing-3);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(4px);
}

.tag .name {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  display: block;
  margin-bottom: var(--spacing-1);
}

.tag .height {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border);
  padding-top: var(--spacing-1);
  display: block;
}

/* ============================================
   LIST OVERRIDES
   ============================================ */

.view-list_comparing {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  z-index: 444;
}

@media screen and (max-width: 780px) {
  .view-list_comparing {
    position: relative;
  }
}

.view-list_comparing-inner {
  position: absolute;
  left: 0;
  width: 280px;
  padding: 50px 10px 20px;
}

@media screen and (max-width: 780px) {
  .view-list_comparing-inner {
    width: 100%;
    padding: 20px 10px 10px 20px;
    position: relative;
  }
}

/* COMPLETE FIX: Edit icon - bigger, vertically centered, clickable */
.list-comparing_people li {
  position: relative;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-2) var(--spacing-5);
  padding-left: 50px;  /* Space for the edit icon */
  border-radius: var(--radius-md);
  margin: var(--spacing-1) 0;
  height: 40px;
  transition: all 0.5s;
  cursor: pointer;
}

/* ============================================
   EDIT BUTTON - Clean implementation
   ============================================ */

/* Style the actual button element */
.list-comparing_people li .btn-edit {
  position: absolute;
  left: 15px;
  top: 30px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 6px;
  border: none;
  background-color: rgba(3, 173, 204, 0.1);
  border-radius: 8px;
  cursor: pointer;
  pointer-events: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Hover effect */
.list-comparing_people li .btn-edit:hover {
  background-color: rgba(3, 173, 204, 0.2);
  transform: translateY(-50%) scale(1.08);
}

/* Active/pressed effect */
.list-comparing_people li .btn-edit:active {
  transform: translateY(-50%) scale(0.95);
}

/* When in edit mode */
.list-comparing_people li.editmode .btn-edit {
  background-color: var(--color-primary);
}

/* SVG icon styling */
.list-comparing_people li .btn-edit svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* SVG icon when in edit mode */
.list-comparing_people li.editmode .btn-edit svg {
  stroke: white;
}

/* Make sure list item has space for the button */
.list-comparing_people li {
  position: relative;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-2) var(--spacing-5);
  padding-left: 50px;
  border-radius: var(--radius-md);
  margin: var(--spacing-1) 0;
  height: 40px;
  transition: all 0.5s;
  cursor: pointer;
}



.l-people_list {
  display: flex;
  justify-content: space-between;
  padding-right: var(--spacing-5);
}

.color_tag {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 10px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.text {
  width: 210px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text_name {
  white-space: nowrap;
  display: block;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
}

.text_height {
  white-space: nowrap;
  display: block;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.btn-del {
  position: absolute;
  height: 40px;
  width: 40px;
  right: 0;
  top: 0;
  padding: 0;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--color-danger);
  font-size: var(--font-size-lg);
}

.btn-del:hover {
  background-color: var(--color-danger);
  color: white;
}

.btn-del:disabled {
  color: var(--color-text-muted);
  cursor: not-allowed;
}

/* ============================================
   PANEL EDIT OVERRIDES
   ============================================ */

.panel-edit {
  padding-top: var(--spacing-3);
}

.editlist .list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row-reverse;
  margin: var(--spacing-1) 0;
}

.editlist .list label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  font-size: var(--font-size-sm);
  line-height: 1.2;
  color: var(--color-text-secondary);
}

.editlist .list input,
.editlist .list select {
  flex: 1;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  width: 178px;
  padding: 0 var(--spacing-2);
}

.editlist .list input:focus,
.editlist .list select:focus {
  border: 1px solid var(--color-border-focus);
  outline: none;
  box-shadow: 0 0 0 3px rgba(3, 173, 204, 0.1);
}

/* ============================================
    FOOTER OVERRIDES
    ============================================ */

/* Footer is now outside main content to avoid being overridden */
.footer {
  position: relative;
  z-index: 1000;
  margin-top: 0;
  padding: var(--spacing-6) 0;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

/* ============================================
    DYNAMIC STYLES
    ============================================ */

/* Dynamic height for ground line */
.view-ground_line {
  height: var(--line-height, 30px);
}

/* ============================================
    SHARE VIEW / SHARE POPUP STYLES
    ============================================ */

#share-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-4);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#share-box {
  background-color: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
  position: relative;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Close button */
#remove-share-box {
  position: absolute;
  top: var(--spacing-4);
  right: var(--spacing-4);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-background);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  transition: all var(--transition-base);
  z-index: 10;
  border: 1px solid var(--color-border);
}

#remove-share-box:hover {
  background-color: var(--color-danger);
  color: white;
  border-color: var(--color-danger);
  transform: rotate(90deg);
}

/* Header Section */
.share-box__header {
  padding: var(--spacing-5) var(--spacing-5) var(--spacing-3);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.share-box__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin: 0 0 var(--spacing-1) 0;
}

.share-box__subtitle {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  margin: 0;
}

/* Share Options - Single Row Layout */
#share-options {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: var(--spacing-3);
  padding: var(--spacing-4) var(--spacing-5);
}

.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform var(--transition-base);
  flex: 1;
  min-width: 0;
  position: relative;
}

.share-option:hover {
  transform: translateY(-4px);
}

.share-option__btn {
  width: 100%;
  aspect-ratio: 1;
  max-width: 60px;
  min-width: 44px;
  border-radius: var(--radius-lg);
  background-color: #ffffff;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid #e5e7eb;
  position: relative;
}

/* Platform-specific icon colors */
.share-option__btn--twitter i {
  color: #000000;
}

.share-option__btn--twitter:hover {
  background-color: #000000;
  border-color: #000000;
}

.share-option__btn--twitter:hover i {
  color: white;
}

.share-option__btn--whatsapp i {
  color: #25D366;
}

.share-option__btn--whatsapp:hover {
  background-color: #25D366;
  border-color: #25D366;
}

.share-option__btn--whatsapp:hover i {
  color: white;
}

.share-option__btn--facebook i {
  color: #1877F2;
}

.share-option__btn--facebook:hover {
  background-color: #1877F2;
  border-color: #1877F2;
}

.share-option__btn--facebook:hover i {
  color: white;
}

.share-option__btn--copy i {
  color: #6366F1;
}

.share-option__btn--copy:hover {
  background-color: #6366F1;
  border-color: #6366F1;
}

.share-option__btn--copy:hover i {
  color: white;
}

.share-option__btn:active {
  transform: scale(0.95);
}

.share-option__label {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Copy Hint - Small tooltip */
.copy-hint {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  display: flex;
  align-items: center;
  gap: var(--spacing-1);
  padding: var(--spacing-1) var(--spacing-2);
  background-color: #10B981;
  color: white;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-base);
  z-index: 20;
  box-shadow: var(--shadow-md);
}

.copy-hint.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.copy-hint i {
  font-size: 10px;
}

/* Content Wrapper - Smaller Result Area */
#content-wrapper {
  /* padding: var(--spacing-3); */
  border-top: 1px solid var(--color-border);
  background-color: var(--color-background-alt);
  height: 180px;
  overflow: hidden;
  width: 100%;
}

#content-wrapper .view {
  width: 100%;
  max-width: 100%;
  height: 100%;
}

#content-wrapper .view.div-order-1 {
  width: 100%;
  max-width: 100%;
  height: 100%;
}

#content-wrapper .view-panel {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

#content-wrapper .view-ground_line {
  width: 100%;
}

/* RTL Support */
[dir="rtl"] #remove-share-box {
  right: auto;
  left: var(--spacing-4);
}

[dir="rtl"] .share-box__title,
[dir="rtl"] .share-box__subtitle {
  text-align: center;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  #share-box {
    max-height: 95vh;
  }

  .share-box__header {
    padding: var(--spacing-4) var(--spacing-4) var(--spacing-2);
  }

  .share-box__title {
    font-size: var(--font-size-base);
  }

  .share-box__subtitle {
    font-size: var(--font-size-xs);
  }

  /* #share-options {
    gap: var(--spacing-2);
    padding: var(--spacing-3) var(--spacing-4);
  } */

  .share-option__btn {
    max-width: 50px;
    min-width: 40px;
    font-size: var(--font-size-lg);
  }

  .share-option__label {
    font-size: 10px;
  }


  #content-wrapper .view {
    /* transform: scale(0.5); */
    height: 200%;
  }
}

/* Dynamic height for person marker */
.person-marker {
  height: var(--person-height, 160px);
  margin-bottom: var(--line-height, 30px);
}

/* Dynamic background color for color tag */
.color_tag {
  background-color: var(--tag-color, #03ADCC);
}

/* ============================================
    SHARE VIEW STYLES
    ============================================ */

#share-view {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  text-align: center;
}

#share-box {
  background-color: #eee;
  width: 50%;
  height: auto;
  max-height: 90vh;
  margin: auto;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

@media screen and (max-width: 700px) {
  #share-box {
    width: 90%
  }
}

#remove-share-box {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 25px;
  height: 25px;
  text-align: center;
  background-color: #eee;
  color: #000;
  border: 1px solid #000;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1.2;
  cursor: pointer;
}

#remove-share-box:hover {
  background-color: #ddd;
}

/* #share-options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
} */

#share-options button {
  padding: 10px;
  width: 70px;
  font-size: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

#share-options button:hover {
  background-color: rgba(3, 173, 204, 0.2);
}

#share-options span {
  display: block;
  font-weight: bold;
  padding-bottom: 10px;
}

#content-wrapper {
  flex: 1;
  box-sizing: border-box;
  max-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

#content-wrapper .view {
  width: unset;
}

.hidden {
  display: none;
}

/* ============================================
    RESPONSIVE OVERRIDES
    ============================================ */

@media screen and (max-width: 780px) {
  .sidebar {
    width: 100% !important;
  }

  .view {
    width: 100% !important;
  }

  .container-main {
    flex-direction: column !important;
    padding: var(--spacing-4) !important;
    gap: var(--spacing-4) !important;
  }

  .container-main__sidebar {
    width: 100% !important;
  }

  .container-main__grid {
    width: 100% !important;
  }

  /* Fix mobile layout - ensure people are within grid */
  .view-comparing_people {
    position: absolute !important;
    bottom: 0 !important;
    height: 100% !important;
    min-height: 300px;
  }
  
  .view-animation_wrap {
    position: absolute !important;
    bottom: 0 !important;
    height: 100% !important;
  }
  

  .person-marker {
    position: absolute !important;
    bottom: 0 !important;
  }

  /* Center people horizontally */
  .view-animation_wrap {
    justify-content: center !important;
  }

  /* Fix comparing group width */
  .view-comparing_group {
    width: 100% !important;
  }
}

@media (max-width: 660px) {
  .div-order-1 {
    order: 1;
  }

  .div-order-2 {
    order: 2;
  }
}

/* ============================================
   BUTTON OVERRIDES
   ============================================ */

.btn-form {
  color: white;
  text-align: center;
  align-items: center;
  align-content: center;
  background: var(--color-primary);
  box-shadow: var(--shadow-sm);
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--spacing-3) var(--spacing-4);
  font-weight: var(--font-weight-semibold);
  transition: all var(--transition-base);
}

.btn-form:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-form:active {
  transform: translateY(0);
}

/* ============================================
   GRID CONTAINER OVERRIDES
   ============================================ */

/* Remove internal scroll from grid container */
.view-panel {
  overflow: visible !important;
}

/* Make grid lines container not scrollable */
.height-grid__container {
  overflow: visible !important;
  max-height: none !important;
}

/* Ensure height-grid has same height as container after people generation */
.height-grid {
  height: 100% !important;
}

.height-grid__container {
  height: 100% !important;
}

/* ============================================
   FORM CONTROL OVERRIDES
   ============================================ */

.form-control,
.form-select {
  text-align: center;
  align-items: center;
  align-content: center;
  background: white;
  height: 35px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0 var(--spacing-3);
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-border-focus);
  outline: none;
  box-shadow: 0 0 0 3px rgba(3, 173, 204, 0.1);
}

/* ============================================
   UTILITY OVERRIDES
   ============================================ */

.flex-1 {
  flex: 1;
}

.flex-fill {
  flex: 1 1 auto;
}

.w-100 {
  width: 100%;
}

.text-black {
  color: var(--color-text-primary) !important;
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-2);
  text-align: var(--text-align-start);
}

.mb-3 {
  margin-bottom: var(--spacing-3);
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--color-border-focus);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 8px;
  z-index: 1000;
}

.skip-to-content:focus {
  top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-border: #000000;
    --color-text-secondary: #000000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* Layout for the 4 share options */
#share-options{
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Each option is icon + label stacked */
#share-options .share-option{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* The icon button itself */
#share-options .share-option__btn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f5f6f8;              /* neutral background */
  border: 1px solid rgba(0,0,0,.10);
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

/* Icon sizing (Font Awesome <i>) */
#share-options .share-option__btn i{
  font-size: 18px;
  line-height: 1;
}

/* Hover / active */
#share-options .share-option__btn:hover{
  transform: translateY(-1px);
  background: #eef0f3;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}
#share-options .share-option__btn:active{
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

/* Label */
#share-options .share-option__label{
  font-size: 13px;
  color: rgba(0,0,0,.72);
}

